package com.hospital.doctor.service;

import com.hospital.doctor.mapper.DrugMapper;
import com.hospital.doctor.pojo.Drug;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class DrugServiceImpl implements DrugService {

    @Autowired
    private DrugMapper drugMapper;

    @Override
    public List<Drug> selectAll() {
        return drugMapper.selectAll();
    }

    @Override
    public List<Drug> selectByDrName(String drName) {
        return drugMapper.selectByDrName(drName);
    }
}
